package com.yu.crm.domain.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 巡更点
 * </p>
 *
 * @author pan
 * @since 2020-09-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="CrmPointPatrol对象", description="巡更点")
public class CrmPointPatrol implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "标注点名称")
    @TableField("point_name")
    private String pointName;

    @ApiModelProperty(value = "巡更路线ID")
    @TableField("route_patrol_id")
    private Long routePatrolId;

    @ApiModelProperty(value = "巡更ID(二维码ID或设备ID)")
    @TableField("patrol_id")
    private Long patrolId;

    @ApiModelProperty(value = "巡更类别，0、二维码;1、视频")
    @TableField("patrol_type")
    private Integer patrolType;

    @ApiModelProperty(value = "排序编号")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty(value = "经度")
    @TableField("longitude")
    private Double longitude;

    @ApiModelProperty(value = "纬度")
    @TableField("latitude")
    private Double latitude;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "gmt_create",fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "gmt_modified",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

    @ApiModelProperty(value = "是否已删除 yes_no")
    @TableField("is_deleted")
    private Integer isDeleted;


}
